package com.abou.model.admin;

/**
 * The class storing authentication credentials from a form.
 * 
 * @author khalid
 */
public class Credentials {
  
  private String login;
  private String password;
  
  /**
   * The empty constructor
   */
  public Credentials() {

    super();
  }
  
  /**
   * The full constructor of the class
   * 
   * @param login See {@link #getLogin()}.
   * @param password See {@link #getPassword()}.
   */
  public Credentials(String login, String password) {

    super();
    this.login = login;
    this.password = password;
  }
  
  /**
   * @return The login for the authentication
   */
  public String getLogin() {

    return login;
  }
  
  /**
   * Sets the new value for the login field.
   * 
   * @param login The new value for the login field
   */
  public void setLogin(String login) {

    this.login = login;
  }
  
  /**
   * @return The password for the authentication
   */
  public String getPassword() {

    return password;
  }
  
  /**
   * Sets the new value for the password field.
   * 
   * @param password The new value for the password field
   */
  public void setPassword(String password) {

    this.password = password;
  }
}